﻿using System;
using System.Collections.Generic;

namespace Pixels.Logic.Rules
{
    class NightCombatRule : LogicRule {

        internal override void execute() {

            var def = World.Colony.totalDefense;

            var alienAttackRoll = Ur.Random.QuickRnd.range(-6, 6);

            if (alienAttackRoll > def) {
                World.Logic.injectEvent(new GameplayEvents.AliensBrokeThrough());
            }

        }

    }
}
